import request from '@/utils/request'


// 查询仓库管理员列表
export function getManager(query) {
  return request({
    url: '/basic/warehouse/manager/',
    method: 'get',
    params: query
  })
}


// 查询仓库管理员详情
export function getManagerDetail(query) {
  return request({
    url: '/basic/warehouse/manager/'+query,
    method: 'get'
  })
}



// 删除仓库管理员
export function delManager(query) {
  return request({
    url: '/basic/warehouse/manager/'+query,
    method: 'delete'
  })
}


// 新增仓库管理员
export function addManager(query) {
  return request({
    url: '/basic/warehouse/manager/',
    method: 'post',
    data: query
  })
}


// 修改仓库管理员
export function updateManager(query) {
  return request({
    url: '/basic/warehouse/manager/',
    method: 'put',
    data: query
  })
}
